//主数据表格配置
export const columns = [
  { title: '税号', dataIndex: 'orgCode', key: 'orgCode', align: 'center' },
  { title: '开票名称', dataIndex: 'orgName', key: 'orgName', align: 'center' },
  { title: '地址电话', dataIndex: 'addTel', key: 'addTel', align: 'center' },
  { title: '开户行及账号', dataIndex: 'bankInfo', key: 'bankInfo', align: 'center' },
  { title: '合并信息', dataIndex: 'invoiceHeadInfo', key: 'invoiceHeadInfo', align: 'center' },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'operation',
    width: 180,
    align: 'center',
    scopedSlots: { customRender: 'action' }
  }
]
//主数据查询配置
export const q_formInfos = [
  { label: '税号', name: 'orgCode', type: 'input', placeholder: '税号' },
  { label: '开票名称', name: 'orgName', type: 'input', placeholder: '开票名称' },
  { label: ['查询', '重置'], type: 'botton' }
]

export const q_formDatas = {
  orgCode:null,
  orgName:null
}

//添加主数据表单配置
export const s_FormInfo = [
  { label: '税号', name: 'orgCode', type: 'input', placeholder: '请输入税号' },
  { label: '开票名称', name: 'orgName', type: 'input', placeholder: '请输入开票名称' },
  { label: '地址电话', name: 'addTel', type: 'input', placeholder: '请输入地址电话' },
  { label: '开户行及账号', name: 'bankInfo', type: 'input', placeholder: '请输入开户行及账号' },
  { label: '合并信息', name: 'invoiceHeadInfo', type: 'input', placeholder: '请输入合并信息' },
  { label: ['保存', '重置'], type: 'botton' }
]

export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  orgCode: null,
  orgName: null,
  addTel: null,
  bankInfo: null,
  invoiceHeadInfo: null
}
export const s_rules = {
  orgCode: [{ required: true, message: '税号必填', trigger: 'blur' }],
  orgName: [{ required: true, message: '开票名称', trigger: 'blur' }],
  bankInfo: [{ required: true, message: '开户行及账号必填', trigger: 'blur' }]
}

//查看明细显示配置
export const infoDatas = [
  { title: '所属单位', id: 'orgPid', value: '' },
  { title: '税号', id: 'orgCode', value: '' },
  { title: '开票名称', id: 'orgName', value: '' },
  { title: '地址电话', id: 'addTel', value: '' },
  { title: '开户行及账号', id: 'bankInfo', value: '' },
  { title: '合并信息', id: 'invoiceHeadInfo', value: '' }
]
